package com.isdepci.project.carbon.controller;


import com.isdepci.framework.web.controller.BaseController;
import com.isdepci.framework.web.domain.AjaxResult;
import com.isdepci.project.carbon.domain.param.StatisticalResult;
import com.isdepci.project.carbon.service.IResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 多维分析结果Controller
 *
 * @author isdepci
 * @date 2025-05-14
 */
@RestController
@RequestMapping("/carbon/result")
public class ResultController extends BaseController
{
    @Autowired
    private IResultService resultService;


    /**
     * 查询多维分析结果
     * @param result
     * @return
     */
    @PostMapping("/selectResult")
    public AjaxResult selectElePriceData(@RequestBody StatisticalResult result){
        return AjaxResult.success(resultService.selectResult(result));
    }








}
